﻿using Microsoft.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace Demo.ProductManager.EntityFrameworkCore;

public class ProductManagerHttpApiHostMigrationsDbContext : AbpDbContext<ProductManagerHttpApiHostMigrationsDbContext>
{
    public ProductManagerHttpApiHostMigrationsDbContext(DbContextOptions<ProductManagerHttpApiHostMigrationsDbContext> options)
        : base(options)
    {

    }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        base.OnModelCreating(modelBuilder);

        modelBuilder.ConfigureProductManager();
    }
}